﻿<UserControl x:Class="usrLibro"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:DV="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
             xmlns:DVC="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"                                       
             mc:Ignorable="d" 
             d:DesignHeight="313" d:DesignWidth="669" xmlns:my="clr-namespace:ASAP.Cliente">


    <Grid >
        <Grid.RowDefinitions >
            <RowDefinition ></RowDefinition>
            <RowDefinition ></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions >
            <ColumnDefinition ></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid Grid.Row="0" Margin="10,10,10,0">
            <DataGrid AutoGenerateColumns="True" Margin="10" Name="DataGrid1" OpacityMask="#F4000000" />
        </Grid>
        <Border Margin="15,0,15,0" Grid.Row="1" 
                                BorderThickness="0" CornerRadius="7" 
                                BorderBrush="#FF070606" Background="#AEBCCBDE">
            <Grid >
                <Grid.RowDefinitions >
                    <RowDefinition ></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions >
                    <ColumnDefinition ></ColumnDefinition>
                    <ColumnDefinition ></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <DVC:Chart Name="mcChart1" Grid.Column="0" Margin="15,0,15,0" BorderBrush="#00000000" Title="Porcentaje de acierto" LegendTitle="Porcentaje" Padding="0">
                    <DVC:Chart.Series>
                        <DVC:PieSeries  
                               IndependentValueBinding="{Binding Path=Key}"
                               DependentValueBinding="{Binding Path=Value}">
                        </DVC:PieSeries>
                    </DVC:Chart.Series>
                </DVC:Chart>
                <DVC:Chart Name="mcChart2" Grid.Column="1" Margin="15,0,15,0" BorderBrush="#00000000" Title="Ronda en la que se acertó" LegendTitle="Ronda" Padding="0">
                    <DVC:Chart.Series>
                        <DVC:PieSeries  
                               IndependentValueBinding="{Binding Path=Key}"
                               DependentValueBinding="{Binding Path=Value}">
                        </DVC:PieSeries>
                    </DVC:Chart.Series>
                </DVC:Chart>
            </Grid>
        </Border>
    </Grid>

</UserControl>
